#include "player.h"

player::player()
{
    life=1000,att=10,def=10,coin=0,exp=0,bk=0,yk=0,rk=0,level=1;
}

void player::csh()
{
    life=1000,att=10,def=10,coin=0,exp=0,bk=0,yk=0,rk=0,level=1;
}
void player::setmonster(int a,int b,int c,int d,int e,int n){
    m[n].life=a;
    m[n].att=b;
    m[n].def=c;
    m[n].coin=d;
    m[n].exp=e;
}
void player::sem(){
    setmonster(50,20,1,1,1,0);//绿色史莱姆
    setmonster(70,15,2,2,2,1);//红色史莱姆
    setmonster(200,35,10,5,5,2);//黑色史莱姆
    setmonster(700,250,125,32,30,3);//史莱姆王
    setmonster(110,25,5,5,4,4);//小骷髅;
    setmonster(150,40,20,8,6,5);//盾牌骷髅
    setmonster(400,90,50,15,12,6);//骷髅队长
    setmonster(100,20,5,3,3,7);//小蝙蝠
    setmonster(150,65,30,10,8,8);//大蝙蝠
    setmonster(550,160,90,25,20,9);//红蝙蝠
    setmonster(125,50,25,10,7,10);//小法
    setmonster(100,200,110,30,25,11);//红法
    setmonster(250,120,70,20,17,12);//麻衣法
    setmonster(500,400,260,47,45,13);//麻衣红法
    setmonster(500,115,65,15,15,14);//石头人
    setmonster(300,75,45,13,10,15);//兽人
    setmonster(900,450,330,50,50,16);//兽人武士
    setmonster(450,150,90,22,19,17);//初级守卫
    setmonster(1250,500,400,55,55,18);//中级守卫
    setmonster(1500,560,460,60,60,19);//高级守卫
    setmonster(1200,620,520,65,75,20);//双手剑士
    setmonster(2000,680,590,70,65,21);//铜甲骷髅
    setmonster(3333,1200,1133,112,100,22);//鬼火骷髅
    setmonster(850,350,200,45,40,23);//黄骑士
    setmonster(900,750,650,77,70,24);//红骑士
    setmonster(1200,980,900,88,75,25);//黑骑士
    setmonster(1000,800,700,80,72,26);//黑暗法师
    setmonster(3100,1150,1050,92,80,27);//幽灵
    setmonster(1600,1306,1200,117,117,28);//狂暴黑骑士
    setmonster(30000,1700,1500,250,220,29);//小boss
    setmonster(2000,1106,973,106,93,30);//黑暗大法师
    setmonster(45000,2550,2250,666,666,31);//boss
    setmonster(20000,1000,1000,133,133,32);
    setmonster(3200,2600,2400,234,234,33);
    setmonster(3000,1600,1400,160,144,34);
    setmonster(60000,3400,3000,666,666,35);
    setmonster(99999,5000,4000,999999,999999,36);
}

void player::setpic()
{
    m[0].pic.load(":/images/Monster/0.png");
    m[1].pic.load(":/images/Monster/1.png");
    m[2].pic.load(":/images/Monster/2.png");
    m[3].pic.load(":/images/Monster/3.png");
    m[4].pic.load(":/images/Monster/4.png");
    m[5].pic.load(":/images/Monster/5.png");
    m[6].pic.load(":/images/Monster/6.png");
    m[7].pic.load(":/images/Monster/7.png");
    m[8].pic.load(":/images/Monster/8.png");
    m[9].pic.load(":/images/Monster/9.png");
    m[10].pic.load(":/images/Monster/10.png");
    m[11].pic.load(":/images/Monster/11.png");
    m[12].pic.load(":/images/Monster/12.png");
    m[13].pic.load(":/images/Monster/13.png");
    m[14].pic.load(":/images/Monster/14.png");
    m[15].pic.load(":/images/Monster/15.png");
    m[16].pic.load(":/images/Monster/16.png");
    m[17].pic.load(":/images/Monster/17.png");
    m[18].pic.load(":/images/Monster/18.png");
    m[19].pic.load(":/images/Monster/19.png");
    m[20].pic.load(":/images/Monster/20.png");
    m[21].pic.load(":/images/Monster/21.png");
    m[22].pic.load(":/images/Monster/22.png");
    m[23].pic.load(":/images/Monster/23.png");
    m[24].pic.load(":/images/Monster/24.png");
    m[25].pic.load(":/images/Monster/25.png");
    m[26].pic.load(":/images/Monster/26.png");
    m[27].pic.load(":/images/Monster/27.png");
    m[28].pic.load(":/images/Monster/28.png");
    m[29].pic.load(":/images/Monster/29.png");
    m[30].pic.load(":/images/Monster/30.png");
    m[31].pic.load(":/images/Monster/31.png");
    m[32].pic.load(":/images/Monster/32.png");
    m[33].pic.load(":/images/Monster/33.png");
    m[34].pic.load(":/images/Monster/134.png");
    m[35].pic.load(":/images/Monster/35.png");
    m[36].pic.load(":/images/Monster/36.png");
}
